function xmxq(e){
    if(e.css('display') == 'inline-block'){
        var  budgetId = $('#DATA_213').val()
    } else{
        var  budgetId = e.parent().parent().find('td').eq(11).find('input').val()
    }

    $.popWindow("/budget/newjournal1?budgetId="+budgetId,"","","",'1000');
}
function ckrz(e){
    layer.open({
        type: 1,
        title:['查看日志', 'background-color:#2b7fe0;color:#fff;'],
        area: ['650px', '380px'],
        shadeClose: true, //点击遮罩关闭
        btn: ['关闭'],
        content:'<div style="width:100%;height:100%;overflow: auto"><table id="uploadTable" style="width: 100%;margin: 0 auto;">' +
        '                    <thead>' +
        '                       <tr style="background:none">' +
        '                         <th style="width: 80px;">步骤号</th>' +
        '                          <th>经办人</th>' +
        '                          <th>时间</th>' +
        '                           <th>项目名</th>' +
        '                           <th>金额</th>' +
        '                           <th>状态</th>' +
        '                    </tr>' +
        '                       </thead>' +
        '                      <tbody class="list"></tbody>' +
        '                 </table></div>',
        success:function(){
            $.ajax({
                url:'/budgetProLog/saveLog',
                dataType:'json',
                data:{runId:$.GetRequest().runId},
                success:function(res){
                    var data = res.data;
                    var str = ''
                    for(var i=0;i<data.length;i++){
                        str += '                <tr style="background:none">' +
                            '                            <td style="width: 80px;">第'+data[i].prcsId+'步：'+data[i].prcsName+'</td>' +
                            '                            <td>'+data[i].userName+'</td>' +
                            '                           <td>'+data[i].logTime+'</td>' +
                            '                          <td>'+data[i].itemName+'</td>' +
                            '                            <td>'+data[i].money+'</td>' +
                            '                           <td>'+function(){
                            if(data[i].logType == '1'){
                                return '加'
                            }else if(data[i].logType == '2'){
                                return '减'
                            }else{
                                return '无'
                            }
                            }()+'</td>' +

                            '                       </tr>'
                    }
                    $('#uploadTable .list').html(str)

                }
            })
        },
    });
}